package vo;

import java.text.DateFormat;

public class User {

	private int id;
	private String name;
	private String password;
	private int planYear;
	private DateFormat startDate;
	private DateFormat endDate;
	MajorPlan major = new MajorPlan();
	public User() {
		super();
	}
	public User(String name, String password) {
		super();
		this.name = name;
		this.password = password;
	}
	public User(int id, String name, String password, int planYear, DateFormat startDate, DateFormat endDate,
			MajorPlan major) {
		super();
		this.id = id;
		this.name = name;
		this.password = password;
		this.planYear = planYear;
		this.startDate = startDate;
		this.endDate = endDate;
		this.major = major;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public int getPlanYear() {
		return planYear;
	}
	public void setPlanYear(int planYear) {
		this.planYear = planYear;
	}
	public DateFormat getStartDate() {
		return startDate;
	}
	public void setStartDate(DateFormat startDate) {
		this.startDate = startDate;
	}
	public DateFormat getEndDate() {
		return endDate;
	}
	public void setEndDate(DateFormat endDate) {
		this.endDate = endDate;
	}
	public MajorPlan getMajor() {
		return major;
	}
	public void setMajor(MajorPlan major) {
		this.major = major;
	}
	@Override
	public String toString() {
		return "User [id=" + id + ", name=" + name + ", password=" + password + ", planYear=" + planYear
				+ ", startDate=" + startDate + ", endDate=" + endDate + ", major=" + major + "]";
	}
}
